﻿@using Library
@model Library.Models.Specification
@{
    var modelCulture = Model.SpecificationCultures.SingleOrDefault(i => i.Culture == NOWCulture.CurrentCulture) ?? Model.SpecificationCultures.First();
}
<tr data-specificationid="@Model.Id">
    <td>&nbsp;&nbsp;&nbsp; @Html.DisplayFor(m => modelCulture.Name)</td>
    <td>@Html.DisplayFor(m => modelCulture.Description)</td>
    <td>
        <button type="button" class="btn btn-sm btn-info" data-editor="edit-values" data-id="@Model.Id"><span class="glyphicon glyphicon-asterisk"></span>@NOWCulture.GetString("Specification values")</button>
        <button type="button" class="btn btn-sm btn-primary" data-editor="edit-specification" data-id="@Model.Id" data-refid="@Model.SpecificationGroupId"><span class="glyphicon glyphicon-edit"></span>@NOWCulture.GetString("Edit")</button>
        <button type="button" class="btn btn-sm btn-danger" data-editor="remove-specification" data-id="@Model.Id"><span class="glyphicon glyphicon-remove"></span>@NOWCulture.GetString("Remove")</button>
    </td>
</tr>